package com.chinasoft.mohaoyu;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class MoHaoYu implements TrueWord {

    //空参构造
    public MoHaoYu(){
        mmmlist.add("I am the bone of my sword.");
        mmmlist.add("Steel is my body, and fire is my blood.");
        mmmlist.add("I have created over a thousand blades.");
        mmmlist.add("Unknown to Death.");
        mmmlist.add("Nor known to Life.");
        mmmlist.add("Have withstood pain to create many weapons.");
        mmmlist.add("Yet, those hands will never hold anything.");
        mmmlist.add("So as I pray, Unlimited Blade Works!");
    }

    List<String> mmmlist =new ArrayList<String>();

    public List<String> getmmmList() {
        return  mmmlist;
    }

    Random r = new Random();
    @Override
    public String getName() {
        return "Archer";
    }

    @Override
    public String getWords() {
        int index = r.nextInt(mmmlist.size());
        return mmmlist.get(index);
    }
}
